home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tiff / tools / Makefile.aix < prev    next >
Makefile  |  1992-02-18  |  5KB  |  163 lines

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.aix,v 1.14 92/02/19 14:38:07 sam Exp $
  2. #
  3. # TIFF Library Tools
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. # SHELL, CTAGS, RANLIB and INSTALL is not defined in standard make for AIX
  25. #
  26. RANLIB=/usr/bin/ranlib
  27. SHELL=/bin/sh
  28. CTAGS=ctags
  29. #
  30. # The AIX versions of install is execute by root only, or SYSV versions.
  31. # INSTALL=/usr/ucb/install
  32. INSTALL=bsdinstall
  33. BINDIR=/usr/local/bin
  34. #
  35. NULL=
  36. IPATH=    -I../libtiff
  37. #
  38. # If you don't want the public domain getopt code, then
  39. # simply null this out and you'll get whatever is in your
  40. # libc (or similar).
  41. #
  42. GETOPT=    getopt.o
  43. #
  44. # Library-wide configuration defines:
  45. #    MMAP_SUPPORT    add support for memory mapping read-only files
  46. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  47. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  48. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  49. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  50. #
  51. # Note that if you change the library-wide configuration, you'll
  52. # need to manual force a full rebuild. 
  53. #
  54. CONF_LIBRARY=\
  55.     -DUSE_VARARGS=0 \
  56.     -DUSE_PROTOTYPES=1 \
  57.     -DCOLORIMETRY_SUPPORT \
  58.     -DYCBCR_SUPPORT \
  59.     ${NULL}
  60. COPTS=    
  61. CFLAGS=    -O ${COPTS} ${IPATH}
  62. #
  63. LIBTIFF=../libtiff/libtiff.a
  64. LIBS=    ${LIBTIFF}
  65. MACHALL=ras2tiff
  66. OBJS=    \
  67.     fax2tiff.o \
  68.     gif2tiff.o \
  69.     pal2rgb.o \
  70.     ppm2tiff.o \
  71.     rgb2ycbcr.o \
  72.     tiff2bw.o \
  73.     tiff2ps.o \
  74.     tiffcmp.o \
  75.     tiffcp.o \
  76.     tiffdither.o \
  77.     tiffdump.o \
  78.     tiffinfo.o \
  79.     tiffmedian.o \
  80.     tiffsplit.o \
  81.     ras2tiff.o \
  82.     ${GETOPT} \
  83.     ${NULL}
  84. ALL=    \
  85.     fax2tiff \
  86.     gif2tiff \
  87.     pal2rgb \
  88.     ppm2tiff \
  89.     rgb2ycbcr \
  90.     tiff2bw \
  91.     tiff2ps \
  92.     tiffcmp \
  93.     tiffcp \
  94.     tiffdither \
  95.     tiffdump \
  96.     tiffinfo \
  97.     tiffmedian \
  98.     tiffsplit \
  99.     ${MACHALL} \
  100.     ${NULL}
  101.  
  102. all:     ${ALL}
  103.  
  104. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  105.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  106. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  107.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  108. tiffcp:    tiffcp.c ${LIBTIFF}
  109.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  110. tiffdump: tiffdump.c
  111.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  112. tiffmedian: tiffmedian.c ${LIBTIFF}
  113.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  114. tiffsplit: tiffsplit.c ${LIBTIFF}
  115.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  116. tiff2ps: tiff2ps.c ${LIBTIFF}
  117.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  118. # junky stuff...
  119. # convert RGB image to B&W
  120. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  121.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  122. # convert B&W image to bilevel w/ FS dithering
  123. tiffdither: tiffdither.c ${GETOPT} ${LIBTIFF}
  124.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${GETOPT} ${LIBS}
  125. # Sun rasterfile converter
  126. ras2tiff: ras2tiff.c ${LIBTIFF}
  127.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  128. # GIF converter
  129. gif2tiff: gif2tiff.c ${LIBTIFF}
  130.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  131. # PBM converter
  132. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  133.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  134. # SGI image file converter
  135. sgi2tiff: sgi2tiff.c ${LIBTIFF}
  136.     ${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.c -limage ${LIBS}
  137. # Group 3 FAX file converter
  138. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  139.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  140. # convert Palette image to RGB
  141. pal2rgb: pal2rgb.c ${LIBTIFF}
  142.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  143. # convert RGB image to YCbCr
  144. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  145.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  146. # SGI versions of tiffgt & tiffsv
  147. tiffgt:    sgigt.c ${GETOPT} ${LIBTIFF}
  148.     ${CC} -o tiffgt ${CFLAGS} sgigt.c ${GETOPT} ${LIBS} -lgutil -lgl_s -lm
  149. tiffsv:    sgisv.c ${LIBTIFF}
  150.     ${CC} -o tiffsv ${CFLAGS} sgisv.c ${LIBS} -lgutil -lgl_s -lm
  151.  
  152. install: all
  153.     @-for i in ${ALL}; do \
  154.         echo ${INSTALL} -c -s $$i ${BINDIR}/$$i; \
  155.         ${INSTALL} -c -s $$i ${BINDIR}/$$i; \
  156.     done
  157.  
  158. clean:
  159.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  160.